diff options
| author | Tom Harley | 2021-11-04 10:22:52 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-11-04 10:22:52 +0000 |
| commit | 841052f7731c05e0f03d58284bfe8d249f91c109 (patch) | |
| tree | 8cbd194124a985f2cf998b8cd08a0663e38fa331 /default.nix | |
| download | sdl2_vnc-841052f7731c05e0f03d58284bfe8d249f91c109.tar.gz sdl2_vnc-841052f7731c05e0f03d58284bfe8d249f91c109.zip | |
Initial commit
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..63c9f8b --- /dev/null +++ b/default.nix @@ -0,0 +1,21 @@ +let nixpkgs = import <nixpkgs> {}; in + +{ stdenv ? nixpkgs.clangStdenv +, SDL2 ? nixpkgs.SDL2 +, patchelf ? nixpkgs.patchelf +}: + +stdenv.mkDerivation { + pname = "SDL2_vnc"; + version = "0.0.1"; + + src = ./.; + + buildInputs = [ SDL2 patchelf ]; + makeFlags = [ "PREFIX=$(out)" ]; + + postInstall = '' + patchelf $out/bin/vncc \ + --set-rpath "$(patchelf --print-rpath $out/bin/vncc):$out/lib" + ''; +} |
