Commit 872b0bdcf4ab
tarball1 file changed+17-10
@@ -16,6 +16,15 @@
1616
"aarch64-linux"1717
];1818
forAllSystems = nixpkgs.lib.genAttrs systems;19
+ cleanSrc =20
+ root:21
+ nixpkgs.lib.cleanSourceWith {22
+ src = root;23
+ filter =24
+ path: type:25
+ nixpkgs.lib.cleanSourceFilter path type26
+ && !(type == "directory" && builtins.elem (baseNameOf path) [ "target" ]);27
+ };1928
2029
pkgsFor =2130
system:@@ -97,12 +106,11 @@
97106
{98107
pname = "headroom";99108
# workspace version (per-crate manifests use version.workspace = true)100
- version =101
- (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version102
- + "-"103
- + (toString self.lastModifiedDate);109
+ version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version;110
+ # + "-"111
+ # + (toString self.rev);104112
105
- src = ./.;113
+ src = cleanSrc ./.;106114
107115
cargoLock = {108116
lockFile = ./Cargo.lock;@@ -154,12 +162,11 @@
154162
headroom-gui = pkgs.rustPlatform.buildRustPackage (155163
{156164
pname = "headroom-gui";157
- version =158
- (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version159
- + "-"160
- + (toString self.lastModifiedDate);165
+ version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version;166
+ # + "-"167
+ # + (toString self.lastModifiedDate);161168
162
- src = ./.;169
+ src = cleanSrc ./.;163170
164171
cargoLock = {165172
lockFile = ./Cargo.lock;