From 03038acdaaf2813eee7ecc66d88235f4ac4b83eb Mon Sep 17 00:00:00 2001 From: Armando Ramirez Date: Sun, 30 Jun 2024 13:23:02 -0700 Subject: [PATCH 1/2] Simple Nix derivation for slippc --- .gitignore | 1 + default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 default.nix diff --git a/.gitignore b/.gitignore index f27e6e0..d513a24 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ __* .todo test-replays/zlptest.zlp test-replays/zlptest.slp +result \ No newline at end of file diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..211f444 --- /dev/null +++ b/default.nix @@ -0,0 +1,12 @@ +let pkgs = import {}; +in { stdenv ? pkgs.stdenv, xz ? pkgs.xz }: +stdenv.mkDerivation { + name = "slippc"; + src = ./.; + buildDepends = [ xz ]; + + installPhase = '' + mkdir -p $out + cp ./slippc $out/ + ''; +} From d2d0f43d9a60b540461ffe0b0808fe63e1da4749 Mon Sep 17 00:00:00 2001 From: Armando Ramirez Date: Sun, 30 Jun 2024 13:29:44 -0700 Subject: [PATCH 2/2] use bin --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 211f444..8d72631 100644 --- a/default.nix +++ b/default.nix @@ -6,7 +6,7 @@ stdenv.mkDerivation { buildDepends = [ xz ]; installPhase = '' - mkdir -p $out - cp ./slippc $out/ + mkdir -p $out/bin + cp ./slippc $out/bin/ ''; }