mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 02:09:26 +08:00
packages.lumerical.license: init
This commit is contained in:
@@ -126,15 +126,21 @@ inputs: rec
|
|||||||
buildProxy = inputs.pkgs.lib.mkBuildproxy ./blog-buildproxy.nix;
|
buildProxy = inputs.pkgs.lib.mkBuildproxy ./blog-buildproxy.nix;
|
||||||
};
|
};
|
||||||
phono3py = inputs.pkgs.python3Packages.callPackage ./phono3py.nix { src = inputs.topInputs.phono3py; };
|
phono3py = inputs.pkgs.python3Packages.callPackage ./phono3py.nix { src = inputs.topInputs.phono3py; };
|
||||||
lumerical = inputs.pkgs.callPackage ./lumerical.nix { src = inputs.topInputs.self.src.lumerical.lumerical; };
|
|
||||||
vm = inputs.pkgs.callPackage ./vm { inherit biu; stdenv = inputs.pkgs.clang18Stdenv; };
|
vm = inputs.pkgs.callPackage ./vm { inherit biu; stdenv = inputs.pkgs.clang18Stdenv; };
|
||||||
oneapiPackages = inputs.pkgs.lib.makeScope inputs.pkgs.newScope (final:
|
oneapiPackages = inputs.pkgs.lib.makeScope inputs.pkgs.newScope (final:
|
||||||
{
|
{
|
||||||
stdenv = inputs.pkgs.callPackage ./oneapi/stdenv.nix { src = inputs.topInputs.self.src.oneapi; inherit gccFull; };
|
stdenv = inputs.pkgs.callPackage ./oneapi/stdenv.nix { src = inputs.topInputs.self.src.oneapi; inherit gccFull; };
|
||||||
fmt = (inputs.pkgs.fmt.override { inherit (final) stdenv; }).overrideAttrs { doCheck = false; env.VERBOSE = "1"; };
|
fmt = (inputs.pkgs.fmt.override { inherit (final) stdenv; }).overrideAttrs { doCheck = false; env.VERBOSE = "1"; };
|
||||||
});
|
});
|
||||||
lumericalLicenseManager = inputs.pkgs.callPackage ./lumericalLicenseManager.nix
|
lumerical =
|
||||||
{ inherit (inputs.topInputs.self.src.lumerical.licenseManager) src crack; };
|
{
|
||||||
|
lumerical = inputs.pkgs.callPackage ./lumerical/lumerical.nix
|
||||||
|
{ src = inputs.topInputs.self.src.lumerical.lumerical; };
|
||||||
|
licenseManager = inputs.pkgs.callPackage ./lumerical/licenseManager.nix
|
||||||
|
{ inherit (inputs.topInputs.self.src.lumerical.licenseManager) src crack; };
|
||||||
|
license = inputs.pkgs.callPackage ./lumerical/license.nix
|
||||||
|
{ src = inputs.topInputs.self.src.lumerical.licenseManager.license; };
|
||||||
|
};
|
||||||
|
|
||||||
fromYaml = content: builtins.fromJSON (builtins.readFile
|
fromYaml = content: builtins.fromJSON (builtins.readFile
|
||||||
(inputs.pkgs.runCommand "toJSON" {}
|
(inputs.pkgs.runCommand "toJSON" {}
|
||||||
|
|||||||
6
packages/lumerical/license.nix
Normal file
6
packages/lumerical/license.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ runCommand, src, macAddress ? "000123456789" }: runCommand "license.txt" {}
|
||||||
|
''
|
||||||
|
cp ${src} $out
|
||||||
|
sed -i 's|xxxxxxxxxxxxx|${macAddress}|' $out
|
||||||
|
sed -i 's|2022.1231|2035.1231|g' $out
|
||||||
|
''
|
||||||
Reference in New Issue
Block a user