-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
50 lines (43 loc) · 1.31 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
description = "Parasoft CppTestCli package using Nix flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.${system}.default = pkgs.stdenv.mkDerivation {
pname = "parasoft-cpptestcli";
version = "2024.1.0";
src = pkgs.fetchurl {
url = "ftp://10.0.1.162/upload/parasoft_cpptest_standard-2024.1.0-linux.x86_64.rekovar.tar.gz";
sha256 = "0g6qiy7gda17as6f9vi146bpq6gvxi96l8g04kibzp7lvhaxax94";
};
buildInputs = [ pkgs.libarchive ];
installPhase = ''
mkdir -p $out/bin
tar -xzf $src --strip-components=1 -C $out
chmod +x $out/cpptestcli
ln -s $out/cpptestcli $out/bin/cpptestcli
'';
meta = with pkgs.lib; {
description = "Parasoft CppTestCli";
homepage = "https://example.com";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ abeljim ];
};
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
self.packages.${system}.default
];
# shellHook = ''
# echo "Started Parasoft CppTestCli environment..."
# '';
};
};
}