Skip to content

Instantly share code, notes, and snippets.

@asheshambasta
Last active July 16, 2020 08:49
Show Gist options
  • Save asheshambasta/2a57ccb8f43896fc0ef9e32014c79c42 to your computer and use it in GitHub Desktop.
Save asheshambasta/2a57ccb8f43896fc0ef9e32014c79c42 to your computer and use it in GitHub Desktop.
nix-repl> :b ((import ./sc3plugins.nix) {})
builder for '/nix/store/l3rp6m6ms4ramxa255hnmfr4gg7a58fw-sc3-plugins.drv' failed with exit code 1; last 10 log lines:
...
  installing
  ln: failed to access '/nix/store/1418n8dkkd9j8dnpzpw09wip6kz03b6z-sc3-plugins': No such file or directory
[0 built (1 failed)]
error: build of '/nix/store/l3rp6m6ms4ramxa255hnmfr4gg7a58fw-sc3-plugins.drv' failed

Why does ln fail above?

{ pkgs ? (import <nixpkgs> { }) }:
let name = "sc3-plugins";
in pkgs.stdenv.mkDerivation rec {
inherit name;
# https://github.com/supercollider/sc3-plugins/commit/7d08fab319198f27a5368307d0e9833c41b8053b
# date = "2020-06-05T09=30=19-07:00";
src = pkgs.fetchgit {
url = "git@github.com:supercollider/sc3-plugins.git";
rev = "7d08fab319198f27a5368307d0e9833c41b8053b";
sha256 = "0qxn1dx9ccb5bkxx0mj2nxh5iqvk3xcx23rclqbc3kxv6gn41rwl";
fetchSubmodules = true;
};
buildInputs = with pkgs; [ cmake supercollider fftw libsndfile ];
cmakeFlags = with pkgs; [
"-DSUPERNOVA=OFF"
"-DSC_PATH=${supercollider}/include/SuperCollider"
"-DFFTW3F_LIBRARY=${fftw}/lib/"
];
installPhase = ''
ln $out /home/ashesh/tmp/foo
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment