Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@betaboon
Last active April 3, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betaboon/07b1075ec34d2af47eecb2ebf92b8d41 to your computer and use it in GitHub Desktop.
Save betaboon/07b1075ec34d2af47eecb2ebf92b8d41 to your computer and use it in GitHub Desktop.
{ stdenv
, fetchFromGitHub
, mono
, makeWrapper
}:
stdenv.mkDerivation {
name = "sass";
src = fetchFromGitHub {
owner = "KnightOS";
repo = "sass";
rev = "b638f95";
sha256 = "0vna5jbn3qsl52izsm0k5p7g6zl2hksdx4m80rr759rf3dhh3g6r";
};
buildInputs = [ mono makeWrapper ];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
hardeningDisable = [ "format" ];
installPhase = ''
mkdir -p $out/{bin,lib/sass}
cp sass/bin/Debug/sass.exe $out/lib/sass
makeWrapper "${mono}/bin/mono" $out/bin/sass \
--add-flags "$out/lib/sass/sass.exe"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment