Skip to content

Instantly share code, notes, and snippets.

@kozross
Last active October 19, 2020 06:52
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 kozross/6f847d3e70e9641551c786b9d8ff18c9 to your computer and use it in GitHub Desktop.
Save kozross/6f847d3e70e9641551c786b9d8ff18c9 to your computer and use it in GitHub Desktop.
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