Skip to content

Commit

Permalink
Build control scripts with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakooo0 committed Oct 11, 2021
1 parent 43d6f53 commit 5fca784
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions helm-control-scripts/default.nix
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5fca784

Please sign in to comment.