re-format flake.nix

This commit is contained in:
wucke13
2023-02-23 21:57:00 +01:00
parent ca1e3b251b
commit e45fd98c07

View File

@@ -64,9 +64,11 @@
];
# a function to generate a nix derivation for rosenpass against any
# given set of nixpkgs
rpDerivation = p: let
rpDerivation = p:
let
isStatic = p.stdenv.hostPlatform.isStatic;
in p.rustPlatform.buildRustPackage {
in
p.rustPlatform.buildRustPackage {
# metadata and source
pname = cargoToml.package.name;
version = cargoToml.package.version;
@@ -101,7 +103,8 @@
# nix progated the *.dev outputs of buildInputs for static
# builds, but that is non-sense for an executables only package
postFixup = if isStatic then ''
postFixup =
if isStatic then ''
remove-references-to -t ${p.bash.dev} -t ${p.libsodium.dev} \
$out/nix-support/propagated-build-inputs
'' else "";