mirror of
https://github.com/typeable/octopod.git
synced 2024-08-16 18:20:22 +03:00
Build control scripts with nix
This commit is contained in:
parent
a38f856975
commit
a6d2426897
28
helm-control-scripts/default.nix
Normal file
28
helm-control-scripts/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ sources ? import ../nix/sources.nix
|
||||
, system ? builtins.currentSystem
|
||||
, pkgs ? (import sources.nixpkgs { inherit system; }).pkgsCross.musl64
|
||||
}:
|
||||
let
|
||||
scripts = pkgs.rustPlatform.buildRustPackage {
|
||||
name = "helm-control-scripts";
|
||||
|
||||
src = ./.;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"dkregistry-0.5.1-alpha.0" = "sha256:1g8xhznnaqb0ksjm95954ws4a11dm1mh2b9b2zn4g7ibcdbrhv3q";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
|
||||
buildInputs = [ pkgs.openssl.dev ] ++
|
||||
pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security;
|
||||
dontStrip = false;
|
||||
dontPatchELF = false;
|
||||
enableDeadCodeElimination = true;
|
||||
};
|
||||
in
|
||||
scripts
|
Loading…
Reference in New Issue
Block a user