-
-
Save kozross/6f847d3e70e9641551c786b9d8ff18c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
bootstrap = import <nixpkgs> { }; | |
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json); | |
src = bootstrap.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
inherit (nixpkgs) rev sha256; | |
}; | |
pkgs = import src { }; | |
drv = { mkDerivation, base, stdenv }: | |
mkDerivation { | |
pname = "test"; | |
version = "1.0.0"; | |
src = ./.; | |
isLibrary = false; | |
isExecutable = true; | |
executableSystemDepends = [ pkgs.pkgsMusl.libffi pkgs.pkgsMusl.gmp ]; | |
executableHaskellDepends = [ base ]; | |
homepage = "https://notabug.org/koz.ross/test"; | |
description = "Messing with musl and Nix"; | |
license = stdenv.lib.licenses.gpl3Plus; | |
}; | |
in pkgs.pkgsMusl.haskellPackages.callPackage drv { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment