Skip to content

Instantly share code, notes, and snippets.

@alexpeits
Created February 29, 2020 02:56
Show Gist options
  • Save alexpeits/a4b8f99d922b00be9c636605559bb045 to your computer and use it in GitHub Desktop.
Save alexpeits/a4b8f99d922b00be9c636605559bb045 to your computer and use it in GitHub Desktop.
nix derivation to build the source for the programming language miranda (http://miranda.org.uk/)
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "miranda";
buildInputs = [ gcc ];
src = ./.;
configurePhase = ''
make cleanup
patchShebangs quotehostinfo
'';
installPhase = ''
mkdir -p $out/bin
cp mira $out/bin
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment