tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
box64: Migrate to finalAttrs pattern
OPNA2608
2 years ago
1b572d52
ca743c97
+5
-6
1 changed file
expand all
collapse all
unified
split
pkgs
applications
emulators
box64
default.nix
+5
-6
pkgs/applications/emulators/box64/default.nix
···
8
8
, withDynarec ? stdenv.hostPlatform.isAarch64
9
9
, runCommand
10
10
, hello-x86_64
11
11
-
, box64
12
11
}:
13
12
14
13
# Currently only supported on ARM
15
14
assert withDynarec -> stdenv.hostPlatform.isAarch64;
16
15
17
17
-
stdenv.mkDerivation rec {
16
16
+
stdenv.mkDerivation (finalAttrs: {
18
17
pname = "box64";
19
18
version = "0.2.4";
20
19
21
20
src = fetchFromGitHub {
22
21
owner = "ptitSeb";
23
23
-
repo = pname;
24
24
-
rev = "v${version}";
22
22
+
repo = "box64";
23
23
+
rev = "v${finalAttrs.version}";
25
24
hash = "sha256-iCZv/WvqZkH6i23fSLA/p0nG5/CgzjyU5glVgje4c3w=";
26
25
};
27
26
···
79
78
rev-prefix = "v";
80
79
};
81
80
tests.hello = runCommand "box64-test-hello" {
82
82
-
nativeBuildInputs = [ box64 hello-x86_64 ];
81
81
+
nativeBuildInputs = [ finalAttrs.finalPackage ];
83
82
} ''
84
83
# There is no actual "Hello, world!" with any of the logging enabled, and with all logging disabled it's hard to
85
84
# tell what problems the emulator has run into.
···
94
93
maintainers = with maintainers; [ gador OPNA2608 ];
95
94
platforms = [ "x86_64-linux" "aarch64-linux" "riscv64-linux" "powerpc64le-linux" ];
96
95
};
97
97
-
}
96
96
+
})