diff options
author | Jan Malakhovski <oxij@oxij.org> | 2023-07-25 13:29:10 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2023-08-03 16:32:05 +0000 |
commit | d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e (patch) | |
tree | 4b43651951b37879c428be6159cdb2fa5e824c67 /pkgs/applications/misc | |
parent | 5852f26bdcdca4a33b37d1631cfb3897bcc36fcc (diff) |
treewide: noop: refer to `src.name` or similar in `sourceRoot` where appropriate, part 2: the non-trivial cases
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/johnny-reborn/with-data.nix | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/pkgs/applications/misc/johnny-reborn/with-data.nix b/pkgs/applications/misc/johnny-reborn/with-data.nix index 1e53edaa5b85a..04300524665e8 100644 --- a/pkgs/applications/misc/johnny-reborn/with-data.nix +++ b/pkgs/applications/misc/johnny-reborn/with-data.nix @@ -6,34 +6,32 @@ , makeWrapper }: + +let + sounds = fetchFromGitHub { + owner = "nivs1978"; + repo = "Johnny-Castaway-Open-Source"; + rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558"; + hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY="; + }; + + resources = fetchzip { + name = "scrantic-source"; + url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip"; + hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4="; + stripRoot = false; + }; +in + stdenvNoCC.mkDerivation { pname = "johnny-reborn"; inherit (johnny-reborn-engine) version; - srcs = - let - sounds = fetchFromGitHub { - owner = "nivs1978"; - repo = "Johnny-Castaway-Open-Source"; - rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558"; - hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY="; - }; - - resources = fetchzip { - name = "scrantic-source"; - url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip"; - hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4="; - stripRoot = false; - }; - in - [ - sounds - resources - ]; + srcs = [ sounds resources ]; nativeBuildInputs = [ makeWrapper ]; - sourceRoot = "source"; + sourceRoot = sounds.name; dontConfigure = true; dontBuild = true; |