Drew Risinger
ca28925120
Changes "name = '...-${version}" -> "pname = '...'" syntax everywhere that is easy. This matches current best nixpkgs convention. The nixpkgs standard derivation will convert this to name = "${pname}-${version}" automatically. This also has the added benefit of adding the version to the filepath for several packages that didn't have it before. The only remaining files are ./artiq-full/extras.nix & ./artiq-fast/pkgs/python-deps.nix. extras.nix had a semi-confusing function that I didn't want to mess with.
16 lines
399 B
Nix
16 lines
399 B
Nix
{ stdenv, fetchgit, git, rustc }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libartiq-support";
|
|
version = import ./artiq-version.nix { inherit stdenv fetchgit git; };
|
|
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
|
|
|
buildInputs = [ rustc ];
|
|
phases = [ "buildPhase" ];
|
|
buildPhase =
|
|
''
|
|
mkdir $out
|
|
rustc ${src}/artiq/test/libartiq_support/lib.rs --out-dir $out -Cpanic=unwind -g
|
|
'';
|
|
}
|