mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-03 06:14:06 +02:00
set cynthion version
This commit is contained in:
parent
d4511262ad
commit
71f719ae7b
2 changed files with 4 additions and 2 deletions
|
|
@ -40,7 +40,7 @@
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
};
|
};
|
||||||
packages = {
|
packages = {
|
||||||
inherit (pkgs) packetry cynthion cynthion-udev apollo-cynthion cynthion-gateware apollo-fpga;
|
inherit (pkgs) packetry cynthion cynthion-udev apollo-cynthion cynthion-gateware apollo-fpga cynthion-unwrapped;
|
||||||
inherit cynthion-gateware-individual;
|
inherit cynthion-gateware-individual;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cynthion-unwrapped";
|
pname = "cynthion-unwrapped";
|
||||||
version = "0.1.2";
|
version = src.rev;
|
||||||
|
|
||||||
outputs = ["out" "udev"];
|
outputs = ["out" "udev"];
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
@ -60,6 +60,8 @@ in
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace cynthion/python/src/commands/util.py \
|
substituteInPlace cynthion/python/src/commands/util.py \
|
||||||
--replace-fail 'os.path.join(package_path, "assets")' "\"$out/share/assets\""
|
--replace-fail 'os.path.join(package_path, "assets")' "\"$out/share/assets\""
|
||||||
|
substituteInPlace cynthion/python/pyproject.toml \
|
||||||
|
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue